extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]刺猬弹"
	att.atk = 60
	att.cd = 0.2
	info = "造成技能伤害时额外附带50点炮击伤害\n[color=#DC143C]同时装备三件时可升级[/color]"
	
func _connect():
	._connect()
	masCha.connect("onAtkChara", self, "onAtkChara")

func onAtkChara(atkInfo):
	if atkInfo.atkType == sys.AtkType.SKILL and not atkInfo.virtual:
		masCha.azurHurtChara(atkInfo.hitCha, 50, sys.HurtType.WEAPON, sys.AtkType.GUN, "刺猬弹")

func upgrade():
	name = "[color=#FFFF00][史诗]刺猬弹"
	info = "造成技能伤害时额外附带50点炮击伤害"
	att.atk = 120
	att.cd = 0.4